Repository navigation
fix(pm-stack): close C7 rollup review gaps - #12504
Conversation
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 524bf3feac
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Addressed the three Codex findings in 8006366:
Verification: |
# Conflicts: # pm-stack/aggregator/report-records-c7.md # pm-stack/aggregator/scripts/generate-report.ts # pm-stack/aggregator/src/report-composer.ts # pm-stack/aggregator/src/report-periods.ts # pm-stack/aggregator/src/report-records.ts # pm-stack/aggregator/test/report-composer-c7.test.ts # pm-stack/aggregator/test/report-periods-c7.test.ts
Shepherd pass for #12504: merged origin/main into the PR branch. The C7 feature had landed on main via #12486 as a token-identical copy of this branch's feature commit, so the add/add conflicts resolved to this branch's content (feature + review fixes); biome/prettier formatting then restored main's treefmt style, leaving a net diff of exactly the review-fix delta.
|
agent-note:v1 Shepherd pass complete — this PR is ready for Felix's merge review. Branch refreshed: merged origin/main (2ba5263) into the PR branch (merge commit 050db99) plus a treefmt commit (b3d1e06). The conflicts were add/add: the C7 feature had landed on main via #12486 as a token-identical copy of this branch's feature commit, and the only later main change to these files was the treefmt pass — so conflicts resolved to this branch's content (feature + review fixes) and biome/prettier formatting restored main's style. Net diff vs main is now exactly the review-fix delta: 5 files (report-composer.ts, report-records.ts, generate-report.ts, report-composer-c7.test.ts, report-records-c7.md). Main does not contain these fixes (no Review findings: all three Codex P2 threads are answered with evidence and resolved — (1) composed blocks keep original IDs, deduped across child records, reach-back copies no longer bubble; (2) composed Verification (sandbox venue, refreshed head b3d1e06): C7 tests 29/29 pass ( Merge state: MERGEABLE. No new dependencies. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b3d1e06c10
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| expect(summaries).toHaveLength(1); | ||
| }); | ||
|
|
||
| test("counts each linked member only in its latest classification as of the report time", () => { |
There was a problem hiding this comment.
Cover classification rollups with a generated reference model
The new latest-classification invariant is covered only by a hand-written two-transition example, with no property-based or model-based composer coverage for arbitrary transition histories, input permutations, or asOf cutoffs. The repository testing doctrine requires generated coverage for meaningful invariants and model-based tests where a specification exists; acceptance examples do not replace that coverage. Add generated histories checked against a latest-event-per-member reference model, naming that model as the oracle.
AGENTS.md reference: AGENTS.md:L37-L39
Useful? React with 👍 / 👎.
Summary
Follow-up to merged #12486; issue #12352 is already closed.
Evidence
--as-ofto reach I/O, broader-than-Friday reach-back, conflated provenance/member links, and cross-period rollup leakage.After: 26 targeted tests pass; typecheck and
git diff --checkpass.Merge Danger
Door: two-way
Blast Radius: low — aggregator rollup composition and persisted report records.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.